package pl.softech.server;

import java.io.IOException;
import java.nio.channels.SocketChannel;

import pl.softech.server.http.HttpBadRequestException;

public class Request implements IRequest {

    private final SocketChannel socket;
    private final byte[] rawData;

    public Request(SocketChannel socket, byte[] rawData) throws HttpBadRequestException, IOException {
        this.socket = socket;
        this.rawData = rawData;
    }

    public byte[] getRawData() {
        return rawData;
    }
    
    public SocketChannel getSocket() {
        return socket;
    }
    
}
